package com.diandian.backend.entrance.client.dto.dingding;

import java.io.Serializable;
import java.util.Map;

public abstract class TaobaoResponse implements Serializable {
    private static final long serialVersionUID = 5014379068811962022L;
    private String code;
    private String message;
    private String errorCode;
    private String msg;
    private String subCode;
    private String subMsg;
    private String subMessage;
    private String flag;
    private String requestId;
    private String qimenType;
    private String body;
    private Map<String, String> headerContent;
    private String requestUrl;
    private Map<String, String> params;

    public TaobaoResponse() {
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSubCode() {
        return this.subCode;
    }

    public void setSubCode(String subCode) {
        this.subCode = subCode;
    }

    public String getSubMsg() {
        return this.subMsg;
    }

    public void setSubMsg(String subMsg) {
        this.subMsg = subMsg;
    }

    public String getBody() {
        return this.body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public Map<String, String> getParams() {
        return this.params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }

    public boolean isSuccess() {
        return (this.errorCode == null || this.errorCode.length() == 0 || this.errorCode.equals("0")) && (this.subCode == null || this.subCode.length() == 0) && (this.flag == null || this.flag.length() == 0);
    }

    public String getRequestId() {
        return this.requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getFlag() {
        return this.flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getQimenType() {
        return this.qimenType;
    }

    public void setQimenType(String qimenType) {
        this.qimenType = qimenType;
    }

    public String getRequestUrl() {
        return this.requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public Map<String, String> getHeaderContent() {
        return this.headerContent;
    }

    public void setHeaderContent(Map<String, String> headerContent) {
        this.headerContent = headerContent;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getSubMessage() {
        return this.subMessage;
    }

    public void setSubMessage(String subMessage) {
        this.subMessage = subMessage;
    }
}